- Notifications
You must be signed in to change notification settings - Fork 5.8k
/
Copy path90. Subsets II_test.go
47 lines (37 loc) · 713 Bytes
/
90. Subsets II_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package leetcode
import (
"fmt"
"testing"
)
typequestion90struct {
para90
ans90
}
// para 是参数
// one 代表第一个参数
typepara90struct {
one []int
}
// ans 是答案
// one 代表第一个答案
typeans90struct {
one [][]int
}
funcTest_Problem90(t*testing.T) {
qs:= []question90{
{
para90{[]int{}},
ans90{[][]int{{}}},
},
{
para90{[]int{1, 2, 2}},
ans90{[][]int{{}, {1}, {2}, {1, 2}, {2, 2}, {1, 2, 2}}},
},
}
fmt.Printf("------------------------Leetcode Problem 90------------------------\n")
for_, q:=rangeqs {
_, p:=q.ans90, q.para90
fmt.Printf("【input】:%v 【output】:%v\n", p, subsetsWithDup(p.one))
}
fmt.Printf("\n\n\n")
}